home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / hsclib / ldebug.h < prev    next >
C/C++ Source or Header  |  1996-10-30  |  4KB  |  140 lines

  1. /*
  2.  * hsclib/ldebug.h
  3.  *
  4.  * debugging defines for hsc
  5.  */
  6.  
  7. #ifndef HSCLIB_LDEBUG_H
  8. #define HSCLIB_LDEBUG_H
  9.  
  10. /*
  11.  * debugging switches
  12.  *
  13.  * if switch is set to "1", requested debugging information is
  14.  * displayed if also the "-debug" switch is enabled when
  15.  * starting hsc
  16.  */
  17. #ifdef DEBUG
  18.  
  19. /* this debugging info is displayed only
  20.  * if the  switch "-debug" has been enabled
  21.  */
  22. #undef  DEBUG
  23. #define DEBUG         1         /* misc. debugging */
  24. #define DEBUG_ATTRVAL 1         /* display attribute values */
  25. #define DEBUG_CONFIG  1         /* display config messages */
  26. #define DEBUG_DEFATTR 1         /* display defined attributes */
  27. #define DEBUG_DEFENT  1         /* display defined entities */
  28. #define DEBUG_DEFTAG  1         /* display defined tags */
  29. #define DEBUG_IF      1         /* display if/else */
  30. #define DEBUG_MACRO   1         /* display macro */
  31. #define DEBUG_SIZE    1         /* display getsize-info */
  32. #define DEBUG_URI     1         /* display uri conversion */
  33. #define DEBUG_ID      1         /* display uri conversion */
  34. #define DEBUG_HSCLIB_OUTPUT 0
  35.  
  36. /* this debugging info is displayed always,
  37.  * independant of the hscprc's debug-flag */
  38. #define DEBUG_ATTR    0         /* display new/del attribute */
  39. #define DEBUG_ENTITY  0         /* display new/del entity */
  40.  
  41. /* ugly debugging info */
  42. #ifndef DEBUG_UGLY
  43. #define DEBUG_UGLY
  44. #endif
  45.  
  46. #else
  47.  
  48. #define DEBUG         0         /* misc. debugging */
  49. #define DEBUG_ATTRVAL 0         /* display attribute values */
  50. #define DEBUG_CONFIG  0         /* display config messages */
  51. #define DEBUG_DEFATTR 0         /* display defined attributes */
  52. #define DEBUG_DEFENT  0         /* display defined entities */
  53. #define DEBUG_DEFTAG  0         /* display defined tags */
  54. #define DEBUG_IF      0         /* display if/else */
  55. #define DEBUG_MACRO   0         /* display macro */
  56. #define DEBUG_SIZE    0         /* display getsize-info */
  57. #define DEBUG_URI     0         /* display uri conversion */
  58. #define DEBUG_ID      0         /* display uri conversion */
  59. #define DEBUG_HSCLIB_OUTPUT 0
  60.  
  61. #define DEBUG_ATTR    0         /* display new/del attribute */
  62. #define DEBUG_ENTITY  0         /* display new/del entity */
  63.  
  64. #endif
  65.  
  66. /* debug message prefix for hsclib-modules */
  67. #define DHL "*hsclib* "
  68.  
  69. /*
  70.  * debugging defines
  71.  */
  72. #if DEBUG
  73. #define D(x) if (hp->debug) x
  74. #else
  75. #define D(x)                    /* nufin */
  76. #endif
  77.  
  78. #if DEBUG
  79. #define DMSG(msg) ((hp->debug) ? (fprintf( stderr, DHL msg "\n" )) : 0 )
  80. #else
  81. #define DMSG(msg)               /* nufin */
  82. #endif
  83.  
  84. #if DEBUG_ATTRVAL
  85. #define DAV(x) if ( hp->debug ) x
  86. #else
  87. #define DAV(x)                  /* nufin */
  88. #endif
  89.  
  90. #if DEBUG_CONFIG
  91. #define DC(x) if ( hp->debug ) x
  92. #else
  93. #define DC(x)                   /* nufin */
  94. #endif
  95.  
  96. #if DEBUG_DEFATTR
  97. #define DDA(x) if ( hp->debug ) x
  98. #else
  99. #define DDA(x)                  /* nufin */
  100. #endif
  101.  
  102. #if DEBUG_DEFENT
  103. #define DDE(x) if ( hp->debug ) x
  104. #else
  105. #define DDE(x)                  /* nufin */
  106. #endif
  107.  
  108. #if DEBUG_DEFTAG
  109. #define DDT(x) if ( hp->debug ) x
  110. #else
  111. #define DDT(x)                  /* nufin */
  112. #endif
  113.  
  114. #if DEBUG_IF
  115. #define DIF(x) if ( hp->debug ) x
  116. #else
  117. #define DIF(x)                  /* nufin */
  118. #endif
  119.  
  120. #if DEBUG_MACRO
  121. #define DMC(x) if ( hp->debug ) x
  122. #else
  123. #define DMC(x)                  /* nufin */
  124. #endif
  125.  
  126. #if DEBUG_SIZE
  127. #define DSZ(x) if ( hp->debug ) x
  128. #else
  129. #define DSZ(x)                  /* nufin */
  130. #endif
  131.  
  132. #if DEBUG_URI
  133. #define DU(x) if ( hp->debug ) x
  134. #else
  135. #define DU(x)                   /* nufin */
  136. #endif
  137.  
  138. #endif /* HSCLIB_LDEBUG_H */
  139.  
  140.